package com.vilicode.mapper;

import com.vilicode.bean.Post;
import com.vilicode.bean.PostType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PostTypeMapper {
    public String queryPostTypeNameByPostTypeID(int ptid);
    public List<PostType> queryPostTypes();
    public int queryCountOfPostsByTypeID(int ptid);//根据推荐类型查询总数
    public List<Post> queryPostsByptid(int ptid, int pageIndex, int pageSize);//按btid查询书籍

}
